<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentEditType extends Migrator
{
    public function up()
    {
        $this->table('agent_channel')->removeColumn('type');


    }

    public function down()
    {

        $this->table('agent_channel')
            ->addColumn('type', 'integer', ['limit' => 15, 'default' => 0, 'comment' => '测试'])//在user表中增加一个test字段
            ->update();
    }
}
